<?php
require_once($GLOBALS['LNG'].$_SESSION[$SESSLG].'/lang.default.mex');
## Corre promocao de sorteios
$GETCLI = $GLOBALS['MYT']->db_array("SELECT CliMap FROM clientes where CliNumero = {$Fi26}");
if (substr($GETCLI[1]['CliMap'], 7, 1) < 1) {
    include($GLOBALS['BIB'] . 'Pr_db/prc_modules/cmr_sorteios.php');
}
#####
echo '<div style="width:100%;background-color: #FFFFFF; border: 1px solid #00CC66">';
if (!isset($Msg_ERROR)) {
    if ($AML[0] > 0) { ?>
        <div class="Error" style="float:left;"><img src="_response/bin.php?get=default/alert.png"><?php echo $lang['XFK0WK2A'][$AML['MSGTYPE']]; ?>
            <div><a href="Aplications/Export_Print.mex?MOD=COMPLIANCE&ID=01&OB=<?php echo $AML['ID']; ?>" target="_blank">Impressao de formularios</a></div>
        </div>
<?php } else {
?>
        <img style="float:left;" src="_response/bin.php?get=default/true.png" />
        <?php echo $lang['XFK0WK2A']['sc_invoice']; ?>
<?php
    }
    //include($GLOBALS['PAD'].'Modules/CMX3458E/mkcpgop.mex');?>
    <div style="float:left;padding:4px;background-color:#F2F2F2"><?php echo $lang['XFK0WK2A']['rel_documents']; ?></div>
    <img style="float:left;" alt="<?php echo $lang['func']['preview']; ?>" src="_response/bin.php?get=default/NavBar/prevprint.png"
         onClick="newprint('Aplications/Export_Pdf.mex?MOD=XFK0WK2A&OB=<?php echo $qr_OBJ; ?>&ID=V1','Printer');">
    <div style="float:left;padding:4px;background-color:#E1E2E0"><a href="javascript:newprint('Aplications/Export_Print.mex?MOD=XFK0WK2A&OB=<?php echo $qr_OBJ; ?>&ID=V1','Printer');">Comprovativo Impresso</a></div>
    <div style="float:left;padding:4px;background-color:#E1E2E0"><a href="javascript:newprint('Aplications/Contact_Email.mex?MOD=XFK0WK2A&OB=<?php echo $qr_OBJ; ?>&ID=12','Printer');">Comprovativo electrónico</a></div>
    <div style="float:left;padding:4px;background-color:#E1E2E0"><a href="javascript:newprint('Aplications/Contact_SMS.mex?MOD=XFK0WK2A&OB=<?php echo $qr_OBJ; ?>&ID=11','Printer');">Mensagem SMS</a></div>

<?php
} else {
    echo '<DIV class="Error">' . $Msg_ERROR . '</DIV>';
}
echo '</div>';
$GET = $GLOBALS['MYT']->db_array("SELECT * FROM bonusinvoice where CLIENT = {$Fi26} AND CAMPAIGN = 12 AND bns_Amount = 300");
if ($GET[0] == 0) { /* ?>
  <script charset="utf-8" type="text/javascript">
  if(confirm('O cliente deseja responder ao inqu&eacute;rito?')) {
  var winquizp = Ext.getCmp('winquizpop');
  idwindow('Inquerito ao cliente','winquizpop','winquizpop','Modules/CMX3458E/mquiz4.php?nb_cliente=<?php echo $Fi26;?>',800,400);
  }</script>
  <?php */
}

#include($GLOBALS['PAD'].'Modules/CMX3458E/mkcpgop.mex');
#include($GLOBALS['PAD'].'Modules/MF93FL27/lib/mkdestben.mex');
?>